package com.wiscamp.ninechapters.problems.domain.models.problems.questions;

import com.wiscamp.ninechapters.problems.enums.Actions;
import cube.ddd.domain.Entity;
import lombok.Data;

/**
 * 问题解析
 */
@Data
public class Solution implements Entity {
    /**
     * 解析编号
     */
    private long solutionId;

    /**
     * 题编号
     */
    private long problemId;

    /**
     * 问题编号
     */
    private long questionId;

    /**
     * 解析序号
     */
    private int solutionIndex;

    /**
     * 解析超文本
     */
    private String solutionHypertext;

    /**
     * 是否优选解题思路
     */
    private boolean preferred = false;

    /**
     * 操作：CREATE / UPDATE / DELETE
     */
    private Actions action = Actions.NONE;
}
